#!/bin/bash

repoloc='/etc/yum.repos.d/CentOS-Base.repo'
mirrorali='http://mirrors.aliyun.com/repo/Centos-7.repo'
mirror163='http://mirrors.163.com/.help/CentOS7-Base-163.repo'

mv ${repoloc} ${repoloc}.bak
wget -O ${repoloc} ${mirrorali}
yum makecache
yum -y update